package personnel.department.dao.entity;

import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.Table;

@Embeddable
public class Career {
		
	@OneToMany(cascade=CascadeType.ALL)
	@JoinColumn(name="employee_id")
	private Set<AdoptedToStructural> adoptedToStructural;
	
	@OneToMany(cascade=CascadeType.ALL)
	@JoinColumn(name="employee_id")
	private Set<Translation> translations;
	
	@OneToMany(cascade=CascadeType.ALL)
	@JoinColumn(name="employee_id")
	private Set<Quit> quits;

	public Career() {
	}
	
	public Set<AdoptedToStructural> getAdoptedToStructural() {
		return adoptedToStructural;
	}

	public void setAdoptedToStructural(Set<AdoptedToStructural> adoptedToStructural) {
		this.adoptedToStructural = adoptedToStructural;
	}

	public Set<Translation> getTranslations() {
		return translations;
	}

	public void setTranslations(Set<Translation> translations) {
		this.translations = translations;
	}

	public Set<Quit> getQuits() {
		return quits;
	}

	public void setQuits(Set<Quit> quits) {
		this.quits = quits;
	}


}
